package com.jdz.service;

import com.jdz.common.ServerResponse;
import com.jdz.pojo.ProjectDetails;
import com.jdz.vo.ExportExcelVo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * Created by sun
 **/
public interface IProjectDetailsService {

    ServerResponse saveOrUpdateProduct(ProjectDetails projectDetails, Integer stuno);

    ServerResponse listMyProduct(Integer stuno);

    ServerResponse detailsProduct(Integer stuno, Integer projectno);

    ServerResponse excellentWorksDetailsProduct(Integer projectno);

    ServerResponse detailsProductAdmin(HttpSession session,Integer projectno);

    ServerResponse IndexCount();

    ServerResponse Review(List<Integer> projectnoList, String stuname, double reviewnotes);

    ServerResponse Examine(List<Integer> projectnoList, String stuname, int examinestatus, String examineresult);

    ServerResponse raceTypeProjectDetailsCount();

    ServerResponse listProduct(int pageNum, int pageSize, String name, String startTime, String stopTime, String projectType, String stuInstitute, Integer examineStatus, int time_sort);

    ServerResponse delete(List<Integer> projectnoList);

    ServerResponse Lock(List<Integer> projectnoList);

    ServerResponse Deblock(List<Integer> projectnoList);

    ServerResponse update(ProjectDetails projectDetails);

    ServerResponse setExcellentWorks(List<Integer> projectnoList);

    ServerResponse delExcellentWorks(List<Integer> projectnoList);

    ServerResponse getExcellentWorks();

    ExportExcelVo<byte[]> exportBusInfo(List<Integer> projectnoList, HttpServletRequest request, HttpServletResponse response) throws  Exception;

    ServerResponse listProductResult(int pageNum, int pageSize,Integer racetypesamsarano,Integer weightFrom);

    ExportExcelVo<byte[]> listProductResultInfor(Integer racetypesamsarano,Integer weightFrom, HttpServletRequest request, HttpServletResponse response)throws Exception;

}
